﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<WebSite.Models.QueryModel>" %>
<%@ Import Namespace="WebSite.Models" %>
<%@ Import Namespace="WebSite.App_Code" %>
<%@ Import Namespace="WebSite.App_Data" %>
<table>        
    <tr>
        <% if (Model.Query_Year.Count > 0) { %>
            <td>年度&nbsp;</td>
            <td><%=Html.DropDownListFor(model => model.Where_Year, Model.Query_Year)%>&nbsp;</td>
        <% } %>
        <td>状态&nbsp;</td>
        <td><%=Html.DropDownListFor(model=>model.Where_BudgetStatus, Model.Query_BudgetStatus)%>&nbsp;</td>
        <td>类别&nbsp;</td>
        <td><%=Html.DropDownListFor(model=>model.Where_ProjectCatgory, Model.Query_ProjectCatgory)%>&nbsp;</td>
        <td>类型&nbsp;</td>
        <td><%=Html.DropDownListFor(model=>model.Where_ProjectType, Model.Query_ProjectType)%>&nbsp;</td>
    </tr>
    <tr>
        <td>编制单位&nbsp;</td>
        <td colspan="3"><%=Html.TextBoxFor(model => model.Where_Department, new { @class = "budget-txt-no-01" })%>&nbsp;</td>
        <td>项目负责人&nbsp;</td>
        <td colspan="3"><%=Html.TextBoxFor(model => model.Where_ProjectPIC, new { @class = "budget-txt-no-01" })%>&nbsp;</td>
    </tr>
    <tr>
        <td>项目名称&nbsp;</td>
        <td colspan="3"><%=Html.TextBoxFor(model => model.Where_ProjectName, new { @class = "budget-txt-no-01" })%>&nbsp;</td>
        <td>项目代号&nbsp;</td>
        <td colspan="3"><%=Html.TextBoxFor(model => model.Where_ProjectCode, new { @class = "budget-txt-no-01" })%>&nbsp;</td>
    </tr>
    <tr>
        <td>是否垫支&nbsp;</td>
        <td><%=Html.DropDownListFor(model=>model.Where_IsAdvence, Model.Query_YN)%>&nbsp;</td>
        <td>软课题&nbsp;</td>
        <td><%=Html.DropDownListFor(model=>model.Where_IsSoft, Model.Query_YN)%>&nbsp;</td>
        <%if (Model.CanLookHis) { %>
            <%if(this.Model.U.HisRoleList.Count > 0){ %>
                <td>查询历史信息&nbsp;</td>
                <td><%=Html.CheckBoxFor(model=>model.Where_IsHis, Model.Where_IsHis)%>&nbsp;</td>
            <%} %>
        <%} %>
        <td colspan="2">&nbsp;</td>
    </tr>
</table>